﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<title>标题</title>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta name="keywords" content="关键字" />
<meta name="description" content="关键字描述" />
<link href="css文件路径" rel="stylesheet" type="text/css" />
<script language="javascript" type="text/javascript" src="JS文件路径"></script>

<script type="text/javascript">
/*此处为JS代码*/
</script>


<style type="text/css">
#text {
	position: absolute;
	left: 40px;
	top: 50px;
}
</style>



</head>
<body>

	<div id="text">内容</div>

	<script type="text/javascript">
	var numPx=230;
	var testTxt;
	var t;
	testTxt=document.getElementById("text");
		function move()
		{
			t=setTimeout("move()",1);
			numPx+=1;
			testTxt.style.top=numPx+"px";
		}
	move();
</script>

</body>
</html>